﻿using System.Collections.Generic;

namespace MudEngine.Parsing.AST
{
    public class EnumDeclaration : NamedAstNode
    {
		private Parser parser;
		public Modifiers Modifiers { get; private set; }

		public IEnumerable<EnumMemberDeclaration> Members
		{
			get
			{
				return this.FindByType<EnumMemberDeclaration>();
			}
		}

        public EnumDeclaration(Parser parser, Modifiers m, AType type, string name) : base(name)
        {
			this.parser = parser;
			this.Modifiers = m;						 
			this.Type = type;
        }

		public override void AcceptVisitor<C>(IAstNodeVisitor<C> visitor, C ctx)
		{
			visitor.VisitEnumDeclaration(this, ctx);
		}
    }
}
